package com.lyf.scm.admin.api.dto;

import com.lyf.scm.common.model.BaseSearchDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * description:
 * 直营预测计划
 *
 * @author: haodong
 * @data: 2020/8/3 10:12
 */
@Data
@ApiModel("直营预测计划")
public class SalesPlanDirectlyDTO extends BaseSearchDTO {


    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("区域code")
    private String areaCode;

    @ApiModelProperty("直营预测计划单号")
    private String salesPlanDirectlyNo;

    @ApiModelProperty("计划活动编码")
    private String salesPlanActivityNo;

    @ApiModelProperty("系统预测量")
    private BigDecimal forecastQty;

    @ApiModelProperty("上次预测量")
    private BigDecimal lastForecastQty;

    @ApiModelProperty("确认量")
    private BigDecimal confirmQty;

    @ApiModelProperty("计划开始日期")
    private String planStartDate;

    @ApiModelProperty("计划结束日期")
    private String planEndDate;

    public void setPlanStartDate(String planStartDate) {
        this.planStartDate = planStartDate;
    }

    public void setPlanEndDate(String planEndDate) {
        this.planEndDate = planEndDate;
    }

    public void setPlanStartDate(LocalDate planStartDate) {
        if (planStartDate != null) {
            this.planStartDate = planStartDate.toString();
        }
    }

    public void setPlanEndDate(LocalDate planEndDate) {
        if (planEndDate != null) {
            this.planEndDate = planEndDate.toString();
        }
    }

}
